package cn.unknowpupil.init.domain.system;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.unknowpupil.init.configure.mybatisplus.base.SuperEntity;

import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * Created at 2020-11-13 by  w10g <br>
 * Initialize SysMenu  ... <br>
 *  菜单表
 *
 * @author unknowpupil
 * @since 0.0.1
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_menu")
@ApiModel(value = "SysMenu 域", description = "菜单表")
public class SysMenu extends SuperEntity<SysMenu> {

private static final long serialVersionUID=1L;
    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称")
    @TableField(value ="name")
    private String name;
    /**
     * 菜单编号路径
     */
    @ApiModelProperty(value = "菜单编号路径")
    @TableField(value ="full_id")
    private String fullId;
    /**
     * 图标样式类
     */
    @ApiModelProperty(value = "图标样式类")
    @TableField(value ="icon_class")
    private String iconClass;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @TableField(value ="show_order")
    private Integer showOrder;
    /**
     * 链接
     */
    @ApiModelProperty(value = "路由地址")
    @TableField(value ="path")
    private String path;
    /**
     * 页面路径
     */
    @ApiModelProperty(value = "页面路径")
    @TableField(value ="component")
    private String component;
    /**
     * 权限ID
     */
    @ApiModelProperty(value = "权限ID")
    @TableField(value ="permission_id")
    private Long permissionId;
    /**
     * 父id
     */
    @ApiModelProperty(value = "父id")
    @TableField(value ="pid")
    private Long pid;
    /**
     * 菜单描述
     */
    @ApiModelProperty(value = "菜单描述")
    @TableField(value ="resource_desc")
    private String resourceDesc;
    /**
     * 是否隐藏
     */
    @ApiModelProperty(value = "是否隐藏")
    @TableField(value ="hidden_flag")
    private String hiddenFlag;
    /**
     * 是否缓存（0缓存 1不缓存）
     */
    @ApiModelProperty(value = "是否缓存（0缓存 1不缓存）")

    @TableField(value ="is_cache")
    private String isCache;

    /** 子菜单 */
    @ApiModelProperty(value = "子菜单")
    @TableField(exist = false)
    private List<SysMenu> children = new ArrayList<SysMenu>();
}